package com.nnk.app;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.*;

import com.nnk.util.Common;

@SuppressWarnings("serial")
public class AboutServlet extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse resp)	throws IOException, ServletException {
		
		String crudaction = req.getParameter("crudaction");
		System.out.println("crudaction:"+crudaction);
		
		if(crudaction != null){
			if(crudaction.equals("submit")){
				req.setAttribute("menuId", "home");
				RequestDispatcher dispatcher = req.getRequestDispatcher("index.jsp");
			}
		}else{
			req.setAttribute("menuId", "about");
			RequestDispatcher dispatcher = req.getRequestDispatcher("jsp/about.jsp");
			dispatcher.forward(req, resp);
		}
	}
}
